package cn.itcast.consumer.client;

import cn.itcast.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author 虎哥
 */
@Component
public class UserClientFallback implements UserClient {
    @Override
    public User queryUserById(Long id) {
        // 处理失败逻辑，返回默认值
        return new User();
    }
}
